package net.sk.china.front.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.sk.china.common.annotation.StringContains;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 支付 Request
 * +----------------------------------------------------------------------
 * // | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * // +----------------------------------------------------------------------
 * // | Copyright (c) 2018-2024 聊来 All rights reserved.
 * // +----------------------------------------------------------------------
 * // | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * // +----------------------------------------------------------------------
 * // | @Author: 聊来 <18970881148@qq.com>
 * // +----------------------------------------------------------------------
 * // | DateTime: 2024/6/4 17:38
 * // +----------------------------------------------------------------------
 */

@Data
public class PayRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "支付方式| public = 微信公众号, h5 =微信H5支付, routine = 微信小程序，alipay = 支付宝, app = APP支付", example = "routine", allowableValues = "range[public,h5,routine,alipay,app]", required = true)
    @StringContains(limitValues = {"pubic","h5","routine","alipay","app"}, message = "请选择正确的支付方式")
    @NotBlank(message = "支付方式必填")
    private String payType = "routine";

    @ApiModelProperty(value = "客户端IP")
    private String clientIp;
}
